package ch01;

/**
 * @author Jane
 * @date 2024-03-15 15:08
 */

public class Student {
    private  int stuNo;
    private    String stuName;
    public int age;

    public Student() {
    }

    protected Student(String stuName) {
        this.stuNo = stuNo;
        this.stuName = stuName;
    }

    Student(int stuNo, String stuName) {
        this.stuNo = stuNo;
        this.stuName = stuName;
    }

    public int getStuNo() {
        return stuNo;
    }

    public void setStuNo(int stuNo) {
        this.stuNo = stuNo;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String show(int id,String name,int age){
        return "大家好,我是"+this.getStuName()+ ",我的学号是:"+this.getStuNo()+",我今年"+this.getAge()+"岁";
    }
    public String show(){
        return "HiHiHi,我是"+this.getStuName()+ ",我的学号是:"+this.getStuNo()+",我今年"+this.getAge()+"岁";
    }
}
